﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPS.Code.Utils
{
    /// <summary>
    /// WPS相关配置信息
    /// </summary>
    public class WPSConfig
    {
        /// <summary>
        /// WPS在线编辑AppId
        /// </summary>
        public static string AppId = "0a2aa59fa550429046f84dbe1b6cb133";
        /// <summary>
        /// WPS在线编辑AppKey
        /// </summary>
        public static string AppKey = "b0239f06f9ee4cd642fe77698c179e41";
        /// <summary>
        /// WPS在线编辑Domain
        /// </summary>
        public static string Domain = "https://wwo.wps.cn";
        /// <summary>
        /// WPS在线编辑文件下载地址
        /// </summary>
        public static string Download_Host = "http://110.86.5.70:1438";
        /// <summary>
        /// 默认头像
        /// </summary>
        public static string Default_Avatar = "https://picsum.photos/100/100/?image=1";

    }

    public class WPSScope
    {
        /// <summary>
        /// 获取用户信息
        /// </summary>
        public static string WPSUserInfo = "user_info";

        /// <summary>
        /// 增值服务(支付相关)
        /// </summary>
        public static string Vas = "vas";

        /// <summary>
        /// 云文档操作
        /// </summary>
        public static string CloudFile = "cloud_file";

        /// <summary>
        /// 文件选择器（申请获取WPS云文档权限时填写）
        /// </summary>
        public static string FileSelector = "file_selector";

    }
    /// <summary>
    /// WPS用户授权配置
    /// </summary>
    public class WPSOauthConfig
    {
        /// <summary>
        /// 授权AppId
        /// </summary>
        public static string AppId = "SX20190805QCUXPR";
        /// <summary>
        /// 授权AppKey
        /// </summary>
        public static string AppKey = "784561c80b0afa4e5ac548395b4bc483";
        /// <summary>
        /// 授权地址
        /// </summary>
        public static string Authorization_Url = "https://openapi.wps.cn/oauthapi/v2/authorize";
    }
}
